package com.example.day5.entity;
public class Student {
    private int tno;
    private String tname;
    private String tpwd;

    public int getTno() {
        return tno;
    }

    public Student(int tno, String tname, String tpwd) {
        this.tno = tno;
        this.tname = tname;
        this.tpwd = tpwd;
    }

    public Student(String tname, String tpwd) {
        this.tname = tname;
        this.tpwd = tpwd;
    }

    @Override
    public String toString() {
        return "Student{" +
                "tno=" + tno +
                ", tname='" + tname + '\'' +
                ", tpwd='" + tpwd + '\'' +
                '}';
    }

    public void setTno(int tno) {
        this.tno = tno;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname;
    }

    public String getTpwd() {
        return tpwd;
    }

    public void setTpwd(String tpwd) {
        this.tpwd = tpwd;
    }
}

